/* GsOrderDeliverGoods.java
 *
 * Project/Product: GWBS2009
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   Administrator	2009-3-24	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2009
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.hitrust.gs.bean.GSOrderAnaDetailBean;
import com.hitrust.gs.bean.GSOrderDeliverGoodsBean;
import com.hitrust.gs.lib.GSLogWriter;
import com.hitrust.gs.lib.db.GSBaseDAO;
import com.hitrust.gs.util.exception.GSException;
/**
 * 记录送货信息
 * **/
public class GsOrderDeliverGoodsDao extends GSBaseDAO {
    /**
     *根据送货单号得到订单明细
     * */
    public ArrayList getOrderDetailByDeliverId(String deliverId) throws Exception{
        String sql="select * from GS_ORDER_DELIVERGOODS where GS_DELIVER_GOODS_ID=?";
        GSOrderDeliverGoodsBean goodsBean=null;
        Object[] obj={deliverId};
        ArrayList tList=new ArrayList();
        try {
            tList= this.executeQuery(new GSOrderDeliverGoodsBean(), sql, obj);
        } catch (Exception e) {
            GSLogWriter.error(this,e.toString());
            throw new GSException(GSException.E19999,GSException.E19999_MSG);
        }
        return tList;
    }
}
